package com.example.springboot2022nocv.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 程序员小洋
 * @version 2022.3
 * @date 2022/12/30 23:02
 * @title
 */
@SuppressWarnings("all")
@TableName("hesuan")
@Data
public class HeSuan {

    @TableId(type = IdType.AUTO)
    /**
     * id
     */
    private Integer id;
    private String name;
    private Integer age;
    private String phone;
    private String card;
    private String type; // 混检 单检
    private String result; // 核酸结果
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
